
include $(PROJECT_ROOT)/autoconfig.mk

obj-y += bget.o
obj-y += qe_bitmap.o
obj-y += qe_buffer.o
obj-y += qe_init.o
obj-y += qe_log.o
obj-y += qe_math.o
obj-y += qe_mem.o
obj-y += qe_pack.o
obj-y += qe_platform.o
obj-y += qe_queue.o
obj-y += qe_service.o

inc-y += $(INCLUDE_DIR)/bget.h
inc-y += $(INCLUDE_DIR)/qe_bitmap.h
inc-y += $(INCLUDE_DIR)/qe_core.h
inc-y += $(INCLUDE_DIR)/qe_def.h
inc-y += $(INCLUDE_DIR)/qe_list.h
inc-y += $(INCLUDE_DIR)/qe_log.h
inc-y += $(INCLUDE_DIR)/qe_math.h
inc-y += $(INCLUDE_DIR)/qe_pack.h
inc-y += $(INCLUDE_DIR)/qe_platform.h
inc-y += $(INCLUDE_DIR)/qe_service.h

INCLUDES := -I$(INCLUDE_DIR) \
			-I$(INCLUDE_DIR)/generated \
			-I$(INCLUDE_DIR)/device

all: $(obj-y)
$(obj-y):
%.o : %.c
	$(CC) $(CFLAGS) $(ARCH_CPPFLAGS) $(INCLUDES) -c $< -o $(BUILD_OJB_DIR)/$@

.PHONY: install
install:
	cp $(inc-y) $(INSTALL_INC_DIR)